package com.woniuxy.service;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.woniuxy.entity.Borrow;

public interface BorrowService {

	
	public void borrowBookByBid(@Param("bid")int bid,@Param("brdate")Date date,@Param("flag")int flag,@Param("uid")int uid);
	public int selectBidCountByBid(int bid);
	public int selectFlagByBid(@Param("bid")int bid,int flag);
	public void updateBookCountByBid(@Param("bid")int bid,@Param("count")int count);
	public int selectCountByBid(int bid);
	public String updateBookFlagByBid(@Param("bid")int bid,@Param("flag")int flag,@Param("uid")int uid);
	public List<Borrow> selceAllBorrow();
	public String borrow(int bid,Date date,int flag,int uid);
}
